package com.hk.model;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/18 16:51
 * State：新闻类型
 */
public class NewsType implements Serializable {

    private int id;
    private String name;
    private int parentId;//新闻类型所属级别
    private String gmtCreate;
    private String gmtModified;

    private List<NewsType> newsTypeList; //二级菜单

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public List<NewsType> getNewsTypeList() {
        return newsTypeList;
    }

    public void setNewsTypeList(List<NewsType> newsTypeList) {
        this.newsTypeList = newsTypeList;
    }

    public NewsType(int id, String name, int parentId, String gmtCreate, String gmtModified) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public NewsType() {

    }

    @Override
    public String toString() {
        return "NewsType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                ", newsTypeList=" + newsTypeList +
                '}';
    }
}
